-> (Parent Child Relationship)
Syntax
Table_Name-> Field_Name1
Var-> Variable_Name
Calc-> Field_Name2
Arguments
- Table_Name
The name of a table.
- Field_Name1
The name of a table field.
- Variable_Name
The name of a variable defined outside of a script or function.
- Field_Name2
The name of a calculated field.
Description
When you need to provide a fully qualified field name in an expression, you place -> between the Table_Name and Field_Name. This is necessary when an expression contains references to fields in multiple tables or when an expression does not have a table context that supplies a default value for Table_Name.
When referencing a field created in the context of a table or layout, you refer to it with the prefix var->, indicating that it is a member of the group of variables.
When referencing a calculated field, you refer to it with the prefix calc->, indicating that it is a member of the group of calculated values.
This expression calculates total_cost using fields from 2 different tables.
dim total_cost as N total_cost = invoice->price * product->cost